<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
  <head>
    <title>
    </title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/style.css">
    <script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/dis_control.js"></script>
    <script>
	</script>
  </head>
<body class="um-vp" ontouchstart>
	<div id="map" style="height:100%; width:100%;"></div>
</body>
<script>
zy_init();
var params = getStorJson('params');
window.uexOnload=function(type)
{
	if(!type){
		uexWindow.setBounce("1");
		uexWindow.showBounceView("0","#FFF","0");
		uexWindow.showBounceView("1","#FFF","0");
	}
	uexWindow.toast('1','5','地图加载中...',"");
	loadScript();
}
function loadScript() {
  var script = document.createElement("script");
  script.src = "http://api.map.baidu.com/api?v=1.2&callback=loadmap";
  document.body.appendChild(script);
}
function loadmap(){
	var lat = params.lat;
	var lng = params.log;

	var map = new BMap.Map("map");          // 创建地图实例

	var opts = {type: BMAP_NAVIGATION_CONTROL_LARGE };  
	map.addControl(new BMap.NavigationControl(opts)); 
	//map.addControl(new BMap.MapTypeControl());  
	var point = new BMap.Point(lng,lat);  // 创建点坐标
	//map.setCurrentCity("北京");
	map.centerAndZoom(point, 15); 
	var marker = new BMap.Marker(point);        // 创建标注  
	map.addOverlay(marker); 

	uexWindow.closeToast();
}
</script>
</html>
